package org.uim.cricket.updater.parser.impl;

import org.uim.cricket.updater.parser.CricketMatchIDParsable;

public class DefaultMatchIDParser implements CricketMatchIDParsable {

	@Override
	public String[] parseMatchID(String source) {
		if (source == null) return null;
		int pos = source.indexOf('#');
		if (pos < 0) return null;
		
		String[] res = new String[2];
		res[0] = source.substring(0, pos).trim();
		res[1] = source.substring(pos+1).trim();
		
		return res;
	}

}
